/*
 * SpaceTigerEngine.java
 *
 * Created on 22. April 2007, 12:34
 *
 * To change this template, choose Tools | Template Manager
 * and open the template in the editor.
 */

package de.tor;

import com.golden.gamedev.GameEngine;
import com.golden.gamedev.GameLoader;
import com.golden.gamedev.GameObject;
import com.golden.gamedev.funbox.ErrorNotificationDialog;
import de.tor.screens.*;
import java.awt.Dimension;

/**
 *
 * @author Charon
 */
public class SpaceTiger extends GameEngine {
    
    public static final int	TITLE = 0, GAME_MODE = 1;
    
    public void initResources() {
        nextGameID = TITLE;
    }
    
    public GameObject getGame(int i) {
        /*switch (nextGameID) {
            case TITLE : return new SplashScreen(this);
            case GAME_MODE:{
                return new SpaceTigerGame(this);
            }
        }*/
         return new SpaceTigerGame(this);
    }
    
    { distribute = true; }
    
    protected void notifyError(Throwable e) {
        new ErrorNotificationDialog(e, bsGraphics,
                "SpaceTiger v0.1", "torridity.de@gmail.com");
    }
    public static void main(String[] args) {
        GameLoader game = new GameLoader();
        game.setup(new SpaceTiger(), new Dimension(1024, 768), false, false);
        game.start();
    }
}
